﻿
@{
    ViewData["Title"] = "warehouseUpdate";
    Layout = "~/Views/Home/Menu.cshtml";
}

<h1>仓库修改</h1>
<form class="layui-form">
    <table>
        <tr>
            <td>
                <div class="layui-form-item">
                    <label class="layui-form-label">仓库编号:</label>
                    <div class="layui-input-inline">
                        <input type="text" name="warehouseNumber" id="warehouseNumber" placeholder="请填写仓库编号" autocomplete="off" class="layui-input" lay-verify="required">
                    </div>
                </div>
            </td>

            <td>
                <div class="layui-form-item">
                    <label class="layui-form-label">仓库名称:</label>
                    <div class="layui-input-inline">
                        <input type="text" name="warehouseName" id="warehouseName" placeholder="请填写仓库名称" autocomplete="off" class="layui-input" lay-verify="required">
                    </div>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="layui-form-item">
                    <label class="layui-form-label">面积:</label>
                    <div class="layui-input-inline">
                        <input type="text" name="warehouseArea" id="warehouseArea" placeholder="请填写面积" autocomplete="off" class="layui-input" lay-verify="required">
                    </div>
                </div>
            </td>
            <td>
                <div class="layui-form-item">
                    <label class="layui-form-label">选择仓库区域:</label>
                    <div class="layui-input-inline">
                        <select id="selectWarehouseArea"name="selectWarehouseArea" lay-verify="required">
                            <option value="0">选择添加仓库区域</option>
                            <option value="A区">A区</option>
                            <option value="B区">B区</option>
                            <option value="C区">C区</option>
                        </select>
                        
                    </div>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="layui-form-item">
                    <label class="layui-form-label">位置编号:</label>
                    <div class="layui-input-inline">
                        <input type="text" name="positionNumber" id="positionNumber" placeholder="请填写位置编号" autocomplete="off" class="layui-input" lay-verify="required">
                    </div>
                </div>
            </td>
            <td>
                <div class="layui-form-item">
                    <label class="layui-form-label">负责人:</label>
                    <div class="layui-input-inline">
                        <input type="text" name="principal" id="principal" placeholder="请填写负责人" autocomplete="off" class="layui-input" lay-verify="required">
                    </div>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="layui-form-item">
                    <label class="layui-form-label">状态:</label>
                    <div class="layui-input-inline">
                        <input type="radio" name="warehouseState" value=1 title="正常" checked>
                        <input type="radio" name="warehouseState" value=2 title="异常">
                    </div>
                </div>
            </td>
            <td>
                <div class="layui-form-item">
                    <label class="layui-form-label">备注:</label>
                    <div class="layui-input-inline">
                        <textarea id="warehouseRemark" name="warehouseRemark" rows="2" cols="20" placeholder="请填写备注"></textarea>
                    </div>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div>
                    <h1 style="text-align:center">仓库平面图</h1>
                    <div style="margin:20px;">
                        <div style="float:left;margin:20px;">
                            <h2>A区</h2>
                        </div>
                        <div id="Adistrict" style="float:left;margin:10px;">
                        </div>
                    </div>
                    <div style="margin:20px;clear:left">
                        <div style="float:left;margin:20px;">
                            <h2>B区</h2>
                        </div>
                        <div id="Bdistrict" style="float:left;margin:10px;">
                        </div>
                    </div>
                    <div style="margin:20px;clear:left">
                        <div style="float:left;margin:20px;">
                            <h2>C区</h2>
                        </div>
                        <div id="Cdistrict" style="float:left;margin:10px;">
                        </div>
                    </div>
                </div>
            </td>
            <td>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-submit lay-filter="demo-login">修改</button>
                        <button type="reset" class="layui-btn layui-btn-primary">取消</button>
                    </div>
                </div>
            </td>
        </tr>
    </table>
</form>

<script src="~/js/warehouse/warehouseupdate.js"></script>
<script src="~/js/warehouse/principalshow.js"></script>